import request from '@/utils/request'

export function findAllGoodslistPage(page) {
  return request({
    url: '/findAllGoodslistPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        spmc: page.pd.spmc,
        spfl: page.pd.spfl
      },
      showCount: page.showCount,
      totalPage: 0,
      totalResult: 0
    }
  })
}
/**商品分类**/
export function getSpfls(params) {
  return request({
    url: '/findSpfls',
    method: 'post',
    data: params,

  })
}
export function addGoods(params) {
  return request({
    url: '/addGoods',
    method: 'post',
    data:params,
  })
}

export function updateGoods(params) {
  return request({
    url: '/editGoods',
    method: 'post',
    data:params,
  })
}
export function findGoodsById(params) {
  return request({
    url: '/findGoodsById',
    method: 'post',
    data:params,
  })
}

export function delGoods(params) {
  return request({
    url: '/delGood',
    method: 'post',
    data:params,
  })
}



